#ifndef card_H_
#define card_H_

#include "enums.h"
#include <iostream>
#include <string>

extern std::string suitString[4];
extern std::string rankString[13];

using std::ostream;

class card{

private:
	suit suitOfCard;
	rank rankOfCard;
public:
	card(){}
	card(suit suitOfCard,rank rankOfCard):suitOfCard(suitOfCard),rankOfCard(rankOfCard),countOfCard(1){}
	int countOfCard;
	suit cardSuit();
	rank cardRank();
	int imgID();
	friend ostream& operator << (ostream& os,const card& ob);
	friend bool cardSortPre(const card& left,const card& right);
	friend bool cardSort(const card& left,const card& right);
	friend bool cardComp(const card& left,const card& right);
	friend bool cardCompSuit(const card& left,const card& right);


};

#endif